export const findDict = parent => {
  let dict
  find(parent)
  function find(parent) {
    if (!parent) return
    if (parent.dict) {
      dict = parent.dict
      return
    } else {
      find(parent.$parent)
    }
  }
  return dict
}